package com.itheima.entity;

import com.itheima.vo.HotArticleVO;
import lombok.Data;

@Data
public class SysHotArticle {
    private Integer id;
    private String title;
    private String author;
    private String keywords;
    private Integer click;

    public HotArticleVO getHotVO() {
        HotArticleVO hotArticleVO = new HotArticleVO();
        hotArticleVO.setId(id);
        hotArticleVO.setTitle(title);
        hotArticleVO.setAuthor(author);
        hotArticleVO.setKeywords(keywords);
        hotArticleVO.setClick(click);
        return hotArticleVO;
    }
}
